// 内层对象
interface myDate {
  title:string
  content:string
}

// 外层对象
interface Response {
  code:number
  msg:string
  data:myDate[]  //嵌套对象
}

const list:Response ={
  code:200,
  msg:'success',
  data:[
    {
      title:'标题1',
      content:'内容1'
    },
    {
      title:'标题2',
      content:'内容2'
    }
  ]
}
console.log(list);
